package coba.mailing.main;

import java.io.IOException;
import java.sql.SQLException;

import org.apache.commons.mail.EmailException;

import coba.mailing.mail.Mail1;
import coba.mailing.mail.Mail10;
import coba.mailing.mail.Mail11;
import coba.mailing.mail.Mail12;
import coba.mailing.mail.Mail13;
import coba.mailing.mail.Mail2;
import coba.mailing.mail.Mail3;
import coba.mailing.mail.Mail4;
import coba.mailing.mail.Mail5;
import coba.mailing.mail.Mail6;
import coba.mailing.mail.Mail7;
import coba.mailing.mail.Mail8;
import coba.mailing.mail.Mail9;

public class Main {

	public static void main(String[] args) throws EmailException, IOException, ClassNotFoundException, SQLException {

		if (args.length < 1)
			return;

		if ("1".equals(args[0]))
			Mail1.sendAll();
		else if ("2".equals(args[0]))
			Mail2.send();
		else if ("3".equals(args[0]))
			Mail3.sendAll();
		else if ("4".equals(args[0]))
			Mail4.send();
		else if ("5".equals(args[0]))
			Mail5.send();
		else if ("6".equals(args[0]))
			Mail6.sendAll();
		else if ("7y8".equals(args[0])) {
			Mail7.sendAll();
			Mail8.sendAll();
		}
		else if ("cancelacion".equals(args[0])) {
			Mail9.sendAll();
			Mail10.sendAll();
			Mail11.sendAll();
		}
		else if ("12".equals(args[0]))
			Mail12.sendAll();
		else if ("13".equals(args[0]))
			Mail13.sendAll();

	}

}
